package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);

    public List<Permission> findAuthority();
    //分页查询
    public Page<Permission> selectByCondition(String queryString);
    //添加权限
    public void add(Permission permission);
    //根据权限id查询权限信息
    public Permission findById(Integer id);
    //编辑权限信息
    public void edit(Permission permission);
    //删除权限
    public void delete(Integer id);
    public Integer checkName(String name);
}
